package cn.jiyun.feign;

import cn.jiyun.dao.login.Login;
import cn.jiyun.dao.login.LoginDTO;
import cn.jiyun.dao.login.Team;
import cn.jiyun.dao.login.TeamDTO;
import cn.jiyun.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Author 王晨
 * Date 2023/8/22
 */
@FeignClient(value = "day11login")
public interface LoginFeign {

    @RequestMapping("/login/denglu")
    public R login(@RequestBody Login login);

    @RequestMapping("/teamlogin/findTeamLogin")//根据登录人查询所属的战队
    public R findAll( @SpringQueryMap TeamDTO teamDTO);

    @RequestMapping("/login/findUc")
    R findLogin(@SpringQueryMap LoginDTO loginDTO);

    @RequestMapping("/team/add")
    R add(@RequestBody Team team);

}
